package com.itmk.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data  //自动生成 get 和set方法
@AllArgsConstructor  //生成构造函数
public class ResultVo<T> {
    private String msg;
    private int code;
    private T data;
    public ResultVo() {
    }
    // 带参构造函数
    public ResultVo(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = (T) data;
    }
}
